// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import './styles/common.scss'
import http from './apis/layout'
import store from './store/layout'
import './utils/directives'
import uploader from 'vue-simple-uploader'
import { LoadingPlugin, ConfirmPlugin } from 'vux'
import { Alert } from './components/layout'
import 'vux/src/styles/1px.less'

Vue.config.productionTip = false

Vue.use(uploader)
Vue.use(LoadingPlugin)
Vue.use(ConfirmPlugin)
Vue.use(Alert)
Vue.prototype.$http = http

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
